//
//  AppDelegate.m
//  12期微博
//
//  Created by apple on 15-1-28.
//  Copyright (c) 2015年 itcast. All rights reserved.
//

#import "AppDelegate.h"
#import "CZTabBarController.h"

@interface AppDelegate ()

@end

@implementation AppDelegate



- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
    
    // 1.初始化自定义Log
    // Standard lumberjack initialization
    [DDLog addLogger:[DDTTYLogger sharedInstance]];
    // And we also enable colors
    [[DDTTYLogger sharedInstance] setColorsEnabled:YES];
    
    
    // 2.创建Windows
    self.window = [[UIWindow alloc] initWithFrame:[UIScreen mainScreen].bounds];
    self.window.backgroundColor = [UIColor whiteColor];
    
    // 3.创建设置根控制器
    CZTabBarController  *tabBarVC = [[CZTabBarController alloc] init];
    self.window.rootViewController = tabBarVC;

    
    // 3.显示Windows
    [self.window makeKeyAndVisible];
    return YES;
}



@end
